package com.spice.service.entity.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spice.common.constant.PermissionConstant;
import com.spice.common.model.BaseEntity;
import com.spice.common.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(PermissionConstant.FLOWER_CHILI_STUDY)
@ApiModel(description = "花椒科研表")
public class FlowerChiliStudy extends BaseEntity {
    @ApiModelProperty(value = "序号",example = "1")
    @ExcelProperty(value = "序号")
    private String orderId;

    @ApiModelProperty(value = "中文名称",example = "新一代辣椒")
    @ExcelProperty(value = "中文名称")
    private String chineseName;

    @ApiModelProperty(value = "通俗名称",example = "新一代")
    @ExcelProperty(value = "通俗名称")
    private String commonName;

    @ApiModelProperty(value = "原料外观图",example = "")
    @ExcelProperty(value = "原料外观图")
    private String exteriorPicture;

    @ApiModelProperty(value = "品种",example = "大红袍")
    @ExcelProperty(value = "品种")
    private String breed;

    @ApiModelProperty(value = "产地",example = "湖南")
    @ExcelProperty(value = "产地")
    private String origin;

    @ApiModelProperty(value = "外形参数",example = "长度5-7cm")
    @ExcelProperty(value = "外形参数")
    private String shapeParameter;

    @ApiModelProperty(value = "闭眼椒、椒籽含量",example = "")
    @ExcelProperty(value = "闭眼椒、椒籽含量")
    private String seedContain;

    @ApiModelProperty(value = "果梗质量占比",example = "")
    @ExcelProperty(value = "果梗质量占比")
    private String fruitStemPercent;

    @ApiModelProperty(value = "梅花瓣质量占比",example = "")
    @ExcelProperty(value = "梅花瓣质量占比")
    private String plumPetalsPercent;

    @ApiModelProperty(value = "花椒叶质量占比",example = "")
    @ExcelProperty(value = "花椒叶质量占比")
    private String leavesPercent;

    @ApiModelProperty(value = "花椒麻素含量，g/kg",example = "")
    @ExcelProperty(value = "花椒麻素含量，g/kg")
    private String flowerChiliElementContain;

    @ApiModelProperty(value = "不挥发性乙醚提取物%",example = "")
    @ExcelProperty(value = "不挥发性乙醚提取物%")
    private String nonVolatileEtherExtract;

    @ApiModelProperty(value = "霉粒质量占比",example = "")
    @ExcelProperty(value = "霉粒质量占比")
    private String moldSeedPercent;

    @ApiModelProperty(value = "色泽",example = "深红")
    @ExcelProperty(value = "色泽")
    private String color;

    @ApiModelProperty(value = "色度参数",example = "")
    @ExcelProperty(value = "色度参数")
    private String colorParameter;

    @ApiModelProperty(value = "花椒香型",example = "醇香")
    @ExcelProperty(value = "花椒香型")
    private String flowerChiliSmellType;

    @ApiModelProperty(value = "外观及均匀性",example = "")
    @ExcelProperty(value = "外观及均匀性")
    private String shape;

    @ApiModelProperty(value = "总灰分",example = "")
    @ExcelProperty(value = "总灰分")
    private String totalAsh;

    @ApiModelProperty(value = "水分",example = "")
    @ExcelProperty(value = "水分")
    private String waterPercent;

    @ApiModelProperty(value = "维护人",example = "")
    @ExcelProperty(value = "维护人")
    private String maintainer;

    @ApiModelProperty(value = "维护时间",example = "2021-06-28 20:48:20")
    @ExcelProperty(value = "维护时间（系统注入）")
    private String maintainTime;

    @Override
    public FlowerChiliStudy cleanup() {
        super.cleanup();
        this.setMaintainTime(DateUtil.getNowDateTime());
        return this;
    }
}
